<?php

namespace App\Http\Controllers\admin;

use App\Dao\CommonDao;
use App\Model\SysModel;
use App\Services\Code;

class SettingsController extends BaseController
{
    public function settings(){
        if(isPost()){
            $params = request()->all();
            CommonDao::settingSet($params);
            return Code::message();
        }
        $info = SysModel::query()->get();
        return view('admin.settings.settings',[
            'info'=>$info
        ]);
    }
}
